import QtQuick 2.15
import QtQuick.Window 2.15
import QtQuick.Controls 2.15
import "bounce.js" as Funs
Window {
    width: 1080
    height: 720
    visible: true
    title: qsTr("Hello World")

    Rectangle {
        id: rectangle
        width: Window.width
        height: Window.height
        color: "#c0af82"
        radius: 0
        border.color: "#ffffff"
        border.width: 1
        layer.enabled: false

        Timer{
            id:time1
            interval:200- slider2.value.toFixed()
            repeat: true
            running:true
            onTriggered: Funs.bounce()
        }


        Text {
            id: text1
            x: 356
            y: 230
            width: 143
            height: 40
            text: slider.value.toFixed()
            font.pixelSize: 40
            horizontalAlignment: Text.AlignHCenter
        }

        Text {
            id: text2
            x: 356
            y: 302
            width: 143
            height: 40
            text: slider1.value.toFixed()
            font.pixelSize: 40
            horizontalAlignment: Text.AlignHCenter
        }

        Text {
            id: text3
            x: 356
            y: 369
            width: 143
            height: 40
            text: slider2.value.toFixed()
            font.pixelSize: 40
            horizontalAlignment: Text.AlignHCenter
        }

        Image {
            id: image
            x: 85
            y: 8
            width: 667
            height: 604
            source:"./image/xueyaji.png"
            fillMode: Image.PreserveAspectFit
        }


        Slider {
            id: slider
            x: 740
            y: 155
            width: 89
            height: 334
            orientation: Qt.Vertical
            to: 200
            value: 0
        }

        Slider {
            id: slider1
            x: 814
            y: 155
            width: 89
            height: 334
            value: 0
            orientation: Qt.Vertical
            to: 200
        }

        Slider {
            id: slider2
            x: 892
            y: 155
            width: 89
            height: 334
            value: 0
            orientation: Qt.Vertical
            to: 200
        }

        Text {
            id: text4
            x: 758
            y: 501
            width: 57
            height: 23
            text: "高压"
            font.pixelSize: 20
            horizontalAlignment: Text.AlignHCenter
        }

        Text {
            id: text5
            x: 830
            y: 501
            width: 57
            height: 23
            text: "低压"
            font.pixelSize: 20
            horizontalAlignment: Text.AlignHCenter
        }

        Image {
            id: image1
            x: 85
            y: 8
            width: 667
            height: 604
            opacity: 0
            visible: true
            source: "./image/xin.png"
            clip: false
            fillMode: Image.PreserveAspectFit
        }


        Text {
            id: text6
            x: 908
            y: 501
            width: 57
            height: 23
            text: "脉搏"
            font.pixelSize: 20
            horizontalAlignment: Text.AlignHCenter
        }


    }
    }





